package org.icosagon.utils;

/**
 *
 * @author Daniel Owens
 */
public class ValidationException extends RuntimeException {
    private Object invalid = null;

    public ValidationException(String desc) {
        super(desc);
    }

    public ValidationException(String desc, Object obj) {
        super(desc);
        this.setInvalidObject(obj);
    }

    public ValidationException(Object obj) {
        this.invalid = obj;
    }

    public void setInvalidObject(Object obj) {
        this.invalid = obj;
    }

    public Object getInvalidObject() {
        return this.invalid;
    }
}